Skip to content

test: add instruction count budget tests for governance flows#457

Open
georgeefaith wants to merge 1 commit into
PrincessnJoy:mainfrom
georgeefaith:feat/311-instruction-budget-tests
Open

test: add instruction count budget tests for governance flows#457
georgeefaith wants to merge 1 commit into
PrincessnJoy:mainfrom
georgeefaith:feat/311-instruction-budget-tests

Conversation

@georgeefaith

Copy link
Copy Markdown

Closes #311

Summary

Extends contracts/governance/src/benchmarks.rs with a finalise benchmark and adds docs/instruction-budgets.md documenting the instruction count baselines.

Changes

  • contracts/governance/src/benchmarks.rs: added BASELINE_FINALISE constant, bench_finalise test, Ledger import
  • New file: docs/instruction-budgets.md

Benchmarks

Operation Baseline Fail threshold (+10%)
create_proposal 5,000,000 5,500,000
cast_vote 2,000,000 2,200,000
finalise 3,000,000 3,300,000

Each test resets the Soroban budget before measuring so setup calls don't inflate the count.

@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@georgeefaith Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add instruction count budget tests for typical governance flows

1 participant